//
//  SLTimer.h
//  SLKit
//
//  Created by S_LINE on 2021/7/29.
//  Copyright © 2021 S_LINE. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SLTimer : NSObject

// 创建一个source定时器
+ (instancetype)scheduledTimerWithTimeInterval:(NSTimeInterval)timeInterval target:(id)aTarget repeats:(BOOL)repeats action:(dispatch_block_t)action;

// 取消source定时器
- (void)invalidate;

@end

NS_ASSUME_NONNULL_END
